package com.zlsy.secondtime.threadcoreknowledge.threadobjectclasscommonmethods;

/**
 * @author zhouliang
 * @date 2020/5/19 8:27
 * <p>
 * 线程的id从0开始，JVM运行来之后，我们创建的线程id早已不是0；
 */
public class Id {
    public static void main(String[] args) {
        Thread thread = new Thread();
        System.out.println("主线程的id:" + Thread.currentThread().getId());
        System.out.println("子线程的id:" + thread.getId());
    }
}
